package com.dy.dept.mapper;

import com.dy.dept.dto.DeptDto;
import com.dy.dept.entity.Dept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.mapping.FetchType;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dy
 * @since 2022-03-22
 */
@Mapper
public interface DeptMapper extends BaseMapper<Dept> {
     List<DeptDto> getDeptAndDeptInfoById(@Param("id") int id);
     List<DeptDto> getAllDeptAndDeptInfo();
}
